package main

import (
	"fmt"
	"strconv"
)

func main(){
	var my01 string = "fxy"
	var my02 int = 9
	myp01 := &my01
	//var myp01 := &my01  error
	myp02 := &my02
	my05 := new(string)
	*my05 = "myp05"
	fmt.Println(*myp01)
	fmt.Println(*myp02)
	fmt.Printf("%s\n",*my05)
	fmt.Println()
	my03,my04:=1,2
	myfunc1(&my03,&my04)
	fmt.Println(my03)
	fmt.Println(my04)

	fmt.Println()
	my06 := 500
	my07 :=strconv.Itoa(my06)
	fmt.Println(my07)
	my08 := "mystr"
	my09,err := strconv.Atoi(my08)
	fmt.Println(my09)
	fmt.Println(err)
}

func myfunc1(a *int,b *int){
	*a,*b=*b,*a
}
